package com.hiultra.archive.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;
import com.hiultra.common.core.domain.entity.ArcStorehouse;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;

/**
 * 环境对象 arc_environment
 *
 * @author ls
 * @date 2022-07-28
 */
public class ArcEnvironment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 环境ID
     */
    private Long environmentId;

    /**
     * 档案区编号
     */
    @Excel(name = "档案区编号")
    private String areaNo;

    /**
     * 当前温度
     */
    @Excel(name = "当前湿度")
    private String nowHumidity;

    /**
     * 当前湿度
     */
    @Excel(name = "当前温度")
    private String nowTemperature;

    /**
     * 红外线（100-有人0.1-无人）
     */
    @Excel(name = "红外线", readConverterExp = "1=00-有人0.1-无人")
    private String infrared;

    /**
     * 水浸100（100-水0.1-无水）
     */
    @Excel(name = "水浸100", readConverterExp = "1=00-水0.1-无水")
    private String water;

    /**
     * 烟雾100（100-有0.1-无）
     */
    @Excel(name = "烟雾100", readConverterExp = "1=00-有0.1-无")
    private String smoke;

    /**
     * PM10
     */
    @Excel(name = "PM10")
    private String pm10;

    /**
     * PM2.5
     */
    @Excel(name = "PM2.5")
    private String pm25;

    @Excel(name = "CO2")
    private String co2;

    @Excel(name = "TVOC")
    private String tvoc;

    @Excel(name = "甲醛")
    private String formaldehyde;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    private ArcStorehouse storehouse;

    public ArcStorehouse getStorehouse() {
        return storehouse;
    }

    public void setStorehouse(ArcStorehouse storehouse) {
        this.storehouse = storehouse;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public void setEnvironmentId(Long environmentId) {
        this.environmentId = environmentId;
    }

    public Long getEnvironmentId() {
        return environmentId;
    }

    public void setAreaNo(String areaNo) {
        this.areaNo = areaNo;
    }

    public String getAreaNo() {
        return areaNo;
    }

    public void setNowHumidity(String nowHumidity) {
        this.nowHumidity = nowHumidity;
    }

    public String getNowHumidity() {
        return nowHumidity;
    }

    public void setNowTemperature(String nowTemperature) {
        this.nowTemperature = nowTemperature;
    }

    public String getNowTemperature() {
        return nowTemperature;
    }

    public void setInfrared(String infrared) {
        this.infrared = infrared;
    }

    public String getInfrared() {
        return infrared;
    }

    public void setWater(String water) {
        this.water = water;
    }

    public String getWater() {
        return water;
    }

    public void setSmoke(String smoke) {
        this.smoke = smoke;
    }

    public String getSmoke() {
        return smoke;
    }

    public void setPm10(String pm10) {
        this.pm10 = pm10;
    }

    public String getPm10() {
        return pm10;
    }

    public void setPm25(String pm25) {
        this.pm25 = pm25;
    }

    public String getPm25() {
        return pm25;
    }

    public String getCo2() {
        return co2;
    }

    public void setCo2(String co2) {
        this.co2 = co2;
    }

    public String getTvoc() {
        return tvoc;
    }

    public void setTvoc(String tvoc) {
        this.tvoc = tvoc;
    }

    public String getFormaldehyde() {
        return formaldehyde;
    }

    public void setFormaldehyde(String formaldehyde) {
        this.formaldehyde = formaldehyde;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("environmentId", getEnvironmentId())
                .append("areaNo", getAreaNo())
                .append("nowHumidity", getNowHumidity())
                .append("nowTemperature", getNowTemperature())
                .append("infrared", getInfrared())
                .append("water", getWater())
                .append("smoke", getSmoke())
                .append("pm10", getPm10())
                .append("pm25", getPm25())
                .append("co2", getPm25())
                .append("tvoc", getPm25())
                .append("formaldehyde", getPm25())
                .toString();
    }
}
